<template>
  <div class="table-page-search-wrapper">
    <el-form :model="searchForm" ref="searchForm" label-width="100px" class="demo-ruleForm">
      <el-row :gutter="10">
        <el-col :md="6" :sm="12" :xs="24">
          <el-form-item label="佣金规则名称:">
            <el-input v-model="searchForm.profitRuleName" placeholder="请输入分润规则名称" />
          </el-form-item>
        </el-col>
        <el-col :md="6" :sm="12" :xs="24">
          <el-form-item label="业态:">
            <el-select v-model="searchForm.businessType" placeholder="请选择业态">
              <el-option
                v-for="item in xsleList"
                :key="item.value"
                :value="item.value"
                :label="item.label"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :md="6" :sm="12" :xs="24">
          <el-form-item label="状态:">
            <el-select v-model="searchForm.status" placeholder="请选择状态">
              <el-option
                v-for="item in ztaiList"
                :key="item.value"
                :value="item.value"
                :label="item.label"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :md="6" :sm="12" :xs="24">
          <div style="margin-left:30px">
            <el-button type="primary" icon="el-icon-search" @click="searchAction()">查询</el-button>
            <el-button icon="el-icon-refresh" @click="resetSearch()" style="margin-left: 6px;">重置</el-button>
          </div>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
export default {
  name: "search",
  data() {
    return {
      xsleList: [
        {
          label: "全部",
          value: "01"
        },
        {
          label: "商超",
          value: "02"
        },
        {
          label: "咖吧",
          value: "03"
        },
        {
          label: "洗衣",
          value: "04"
        },
        {
          label: "家政",
          value: "05"
        }
      ],
      ztaiList: [
        {
          label: "提供服务",
          value: "01",
        },
        {
          label: "停止服务",
          value: "00",
        },
      ],
      searchForm: {}
    };
  },
  methods: {
    searchAction() {
      //执行搜索
      this.$emit("search");
    },
    resetSearch() {
      this.searchForm = {};
      this.$emit("resetSearch");
    },
    getSearchForm() {
      //获取高级搜索条件
      return {
        ...this.searchForm
      };
    }
  }
};
</script>


<style lang="less">
</style>>
